package com.jnshu.service;

import com.aliyuncs.exceptions.ClientException;
import com.jnshu.dto.user.UserVo;
import com.jnshu.tools.resultUtils.ResultBean;

import java.io.IOException;

/**
 * @ClassName BackUserService
 * @Descrintion
 * @Author bd
 * @Date 2019/8/4 20:04
 * @Version 1.0
 **/

public interface BackUserService {
    //    后台用户详情
    ResultBean selectByPrimaryKey(long id);

    //后台用户列表
    ResultBean selectList(UserVo userVo, int pageSize, int pageNum);
    //发送手机验证码
    ResultBean sendPhoneCode(String phone) throws ClientException;
    //效验验证码，绑定手机号
    ResultBean bindingPhone(String phone,String code,long id);
    //发送邮箱验证码
    ResultBean sendEmailCode(String email) throws IOException;
    //效验验证码，绑定邮箱
    ResultBean bindingEmail(String email,String code,long id);
}
